<!DOCTYPE html>
<html>
<head>
	<title>广告管理页面</title>
<link rel="stylesheet" type="text/css" href="__CSS__/main.css">
</head>
<body class="clear">
<!-- 头部区域 -->
<div id="nav_div">
	<!-- logo -->
	<img src="__IMG__/people.png" id="people">
	<h2 class="mesH">论坛后台管理</h2>
	<div class="mesWec">
		<span>欢迎您：{:session('aNick')}</span>
	</div>
</div>
<!-- 导航栏区域 -->
<div id="mesNavBar">
	<ul>
		<li><a href="{:url('deal/mesDeal')}">帖子管理</a></li>
		<li><a href="{:url('deal/userDeal')}">用户管理</a></li>
		<li><a href="{:url('deal/secDeal')}">版块管理</a></li>
		<li><a href="{:url('bindeal/binsecdeal')}">回收站管理</a></li>
		<li><a href="{:url('advdeal/advDeal')}">广告管理</a></li>
		<li><a href="{:url('advdeal/boxDeal')}">轮播图管理</a></li>
		<li><a href="{:url('admin/apa')}">修改密码</a></li>
		<li><a href="{:url('admin/alogOut')}">注销</a></li>
		<li><a href="{:url('../forum/index/index')}">论坛前台</a></li>
	</ul>
</div>
<!-- 广告管理区域 -->
<div class="daohanglan" style="font-weight:bold">
	<div>首页广告管理</div>
	<form action="{:url('advdeal/advAdd')}" method="post" enctype="multipart/form-data" style="margin:0;">
		<input type="submit" name="add" value="添加广告">
	</form>
	<form action="{:url('advdeal/advDeal')}" method="get" enctype="multipart/form-data">
		<input type="text" style="margin-left:52%" name="find">
		<input type="submit" value="搜索" id="sousuo">
	</form>
</div>
<div class="mesForm">
	<form action="">
		<table style="margin:20px 0;width: 100%;">
			<tr>
				<td class="mesTdf" style="font-weight:bold">序号</td>
				<td class="mesTd" style="font-weight:bold">图片</td>
				<td class="mesTd" style="font-weight:bold" style="padding: 5px 0px;">标题|发布时间</td>
				<td class="mesTd" style="font-weight:bold" style="padding: 5px 0px;">文字介绍</td>
				<td class="mesTd" style="font-weight:bold" style="padding: 5px 0px;">指向地址</td>
				<td class="mesTd" style="font-weight:bold">操作</td>
			</tr>
			{volist name="adv" id="advRow"}
			<tr>
				<td class="mesTdf" style="padding: 5px 0px;">{$advRow.a_id}</td>
				<td class="mesTd" style="padding: 5px 0px;"><img width="231" height="78" src="__ADV__/{$advRow.a_img}" alt="TPShop"></td>
				<td class="mesTd" style="padding: 5px 57px;">
					<span>{$advRow.a_title}</span>
					<p>{$advRow.a_createat|date="Y-m-d"}</p>
				</td>
				<td class="mesTd" style="padding: 5px 0px;">{$advRow.a_content}</td>
				<td class="mesTd" style="padding: 5px 0px;">{$advRow.a_path}</td>
				<td class="mesTd" style="padding: 5px 0px;">
					<a href="{:url('advdeal/advInfo',['a_id'=>$advRow.a_id])}">修改   |   </a>
					{compare name="advRow.a_aok" value='2'}
					<a href="{:url('advOK',['a_id'=>$advRow.a_id,'a_aok'=>'2'])}" style="color: red;">审核通过      </a>|
					<a href="{:url('advOK',['a_id'=>$advRow.a_id,'a_aok'=>'1'])}">暂停使用      </a>|
					{else/}
					{compare name="advRow.a_aok" value='1'}
					<a href="{:url('advOK',['a_id'=>$advRow.a_id,'a_aok'=>'2'])}">审核通过      </a>|
					<a href="{:url('advOK',['a_id'=>$advRow.a_id,'a_aok'=>'1'])}" style="color: red;">暂停使用      </a>|
					{else/}
					审核通过<a href="{:url('advOK',['a_id'=>$advRow.a_id,'a_aok'=>'2'])}" style="color: red;">(待审核)      </a>|
					<a href="{:url('advOK',['a_id'=>$advRow.a_id,'a_aok'=>'1'])}">暂停使用      </a>|
					{/compare}
					{/compare}
					<a href="{:url('advdeal/advdeal',['a_id'=>$advRow.a_id])}">删除</a>
				</td>
			</tr>
			{/volist}
		</table>
	</form>
</div>
<div id="view_page">{$page|raw}</div>
</body>
</html>